﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Input;
using System.Windows.Input.Fakes;
using Xunit;

namespace FakesDemo.UnitTests
{
    public class CommandStuff
    {
        public bool CanExecuteCommand(ICommand command)
        {
            return command.CanExecute(null);
        }

        [Fact]
        public void CommandTest()
        {
            StubICommand command = new StubICommand
            {
                CanExecuteObject = p => true
            };

            Assert.True(CanExecuteCommand(command));
        }

    }
}
